var path = require('path')

module.exports = {
    entry: {
        app: [
            'webpack/hot/dev-server',
            'webpack-dev-server/client?http://localhost:8080',
            path.resolve(__dirname, 'src/main.jsx')
        ],
        "mui/AppBar": [
            //'webpack/hot/dev-server',
            //'webpack-dev-server/client?http://localhost:8080',
            path.resolve(__dirname, 'src/mui/AppBar.cjsx')
        ],
        "mui/AutoComplete": [
            path.resolve(__dirname, 'src/mui/AutoComplete.cjsx')
        ]
    },
    output: {
        path: path.resolve(__dirname, 'build'),
        filename: '[name].js'
    },
    module: {
        loaders: [{
            test: /\.jsx$/,
            loader: 'babel',
            query: {
                presets: ['react', 'es2015']
            }
        }, {
            test: /\.cjsx$/,
            loader: 'coffee!cjsx'
        }]
    }
}